<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<table class="cntable table table-bordered dataTable table-goldenBeanDetail">
	<thead>
		<tr>
			<th style="width:50px">序号</th>
			<th data-sortable="true" data-field="userIdentity" style="width:130px">客户编号</th>
			<th style="width:100px">客户名</th>
			<th style="width:100px">交易单号</th>
			<th style="width:100px">交易类型</th>
			<th style="width:100px">收入/支出</th>
			<th style="width:130px">交易数目</th>
			<th data-sortable="true" data-field="time" style="width:130px">交易时间</th>
			<th style="width:80px">剩余金豆</th>			
		</tr>
	</thead>
	<tbody>
		<c:forEach var="goldenBeanDetail" items="${goldenBeanDetails}" varStatus="status">
			<tr data-id="${goldenBeanDetail.id}">
				<td>${status.index+1}</td>
				<td>${goldenBeanDetail.userIdentity}</td>
				<td>${goldenBeanDetail.customerName}</td>
				<td>${goldenBeanDetail.outTradeNo}</td>
				<td>
					<t:provider packageName="acc" enumClassName="GoldenBeanType" value="${goldenBeanDetail.goldenBeanType}"/>
				</td>
				<td>
				    <t:provider packageName="acc" enumClassName="State" value="${goldenBeanDetail.state}"/> 		
				</td>
				<td>${goldenBeanDetail.goldenBeanAccount}</td>
				<td><fmt:formatDate value="${goldenBeanDetail.time}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
				<td>${goldenBeanDetail.goldenBeanBalance}</td>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th">
				<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>